package com.lemonfish.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

/**
 * 订单 Entity定义
 *
 * @author Lemonfish
 * @version 1.0
 * @date 2020-03-13
 * Copyright © Chao Zhang
 */
@ApiModel(value = "订单")
@Getter
@Setter
@Accessors(chain = true)
@TableName("orderlist")
public class Order extends BaseCustomEntity {
    private static final long serialVersionUID = -5868875085894436622L;


    // 是否支付
    @ApiModelProperty(value = "是否支付", example = "true")
    @TableField()
    private Boolean isPaid;

    // 是否发货
    @ApiModelProperty(value = "是否发货", example = "true")
    @TableField()
    private Boolean isSent;

    // 发货地址
    @ApiModelProperty(value = "发货地址", example = "")
    @Length(max = 200, message = "发货地址长度应小于200")
    @TableField()
    private String consigneeAddr;

}
